const { modBusSocketInfo } = require("../modbusConnect/index");
const { tcpSocketInfo } = require("../tcpConnect/index");
let socketInstance = null;
async function clientInfo(io) {
  socketInstance = await io.of("/clientInfo");
  tcpSocketInfo(socketInstance);
  modBusSocketInfo(socketInstance);
}

async function getClientSocketInstance() {
  return await socketInstance;
}

module.exports = {
  clientInfo,
  getClientSocketInstance,
};
